<style>
body{margin:0px;font-size:16px;font-family: times New Roman,Arial;color:#777777}
</style>

<?php 
$w0=46;
$w1=210;
$w2=21;
$w3=88;
$w=520;
?>


        	<table border="0" cellspacing="0" cellpadding="0" style='line-height:14px;width:<? echo $w;?>px'>
              <tr>
              	<td ></td>
                <td style='text-align:left;vertical-align:top; padding-top:18px;width:195px'><?php echo date('d', $this->inbound->inbound_create_time) ;?><span style='width:53px;display:inline-block'></span><?php echo date('m', $this->inbound->inbound_create_time) ;?><span style='display:inline-block;width:55px'></span><?php echo date('y', $this->inbound->inbound_create_time) ;?></td>
                 <td style='text-align:left;vertical-align:top;width:100px'>
                        <?php echo $this->inbound->inbound_code ;?>
                </td>
              </tr>
            </table>
            
       
    <table width="100%" border="0" cellspacing="0" style='line-height:22px;margin-top:32px;width: <? echo $w;?>px'>       
     <tr>
        <td style='padding-left:80px'><?php echo $this->company_name;?></td>
      </tr>
      <tr>
        <td style='padding-left:120px'><?php echo $this->reason_content;?></td>
      </tr>
    </table>
    
       
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" style='line-height:22px;border-collapse:collapse;margin-top:28px;width: <? echo $w;?>px'>
                    		<tr>
                            	<td colspan='6' style='height:0px'></td>
                            </tr>                 
 	                      	<?php 
 	                      	$no=1;$total=0;
 	                      	foreach ($this->inbound_details as $inbound_detail)
 	                      	{
 	                      		$inbound_detail_product_quantity=$inbound_detail->inbound_detail_product_quantity;  
 	                      		$total+=$inbound_detail_product_quantity;
 	                      	?>
                            <tr>
                            	<td style='width:<?php echo $w0;?>px;text-align:center'></td>
                            	<td style='width:<?php echo $w1;?>px;text-align:left'><?php echo $inbound_detail->m_Array['product_name']?></td>
                            	<td style='width:<?php echo $w2;?>px;text-align:center'><?php echo $inbound_detail->m_Array['unit_name']?></td>
                            	<td style='width:<?php echo $w3;?>px;text-align:center'><?php echo $inbound_detail->inbound_detail_product_quantity?></td>
                            	<td style='width:42px;text-align:center'><?php echo $inbound_detail->inbound_detail_lot_code?></td>
                            	<td style='text-align:center'><?php echo $this->partial("index/format/time.phtml",'admin',array($inbound_detail->inbound_detail_expire_time))?></td>
                            </tr>
                            <?php }?>
                    </table>
   
<div style='position:absolute;top:576px;left:<?php echo $w0+$w1+$w2;?>px;width:<?php echo $w3;?>px;text-align: center;'><?php echo $total?></div>